﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace GisWeb
{
    public partial class predictPara : FloatableWindow
    {
       public event EventHandler singleChoose;
        public event EventHandler multiChoose;
        public event EventHandler clearSelection;
        public event EventHandler stopCom;
        public event EventHandler stopDraw;
        public event EventHandler alterType;
        public int showFlag = 0;
        public predictPara()
        {
            InitializeComponent();
        }

        private void single_Checked(object sender, RoutedEventArgs e)
        {
            singleChoose(this, e);
        }

        private void multi_Checked(object sender, RoutedEventArgs e)
        {
            multiChoose(this, e);
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            clearSelection(this, e);
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            stopCom(this, e);
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            single.IsChecked = false;
            multi.IsChecked = false;
            stopDraw(this, e);
        }

        private void predictType_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (showFlag == 1)
            {
                alterType(this, e);
            }
        }
    }
}

